﻿@model Models.NewsContent
<!DOCTYPE html>

<html>
<head>
    <title>添加用户信息</title>
    <link href="~/Content/tableStyle.css" rel="stylesheet" />
    @Scripts.Render("~/mvcAjax")

</head>
<body>
    <form id="frmUploadImg" enctype="multipart/form-data" action="/news/FileUpload">
        <div>
            <div style="text-align:center">
                <h1>@Model.title</h1>
            </div>
            <table width="97%" align="center">
                <tr>
                    <td align="center">
                        [日期：@Model.addtime]&nbsp;&nbsp;|&nbsp;&nbsp;
                        [ 来源：@Model.newsSource]
                        &nbsp;&nbsp;|&nbsp;&nbsp;
                        [ 类型：@ViewBag.newstype]      &nbsp;&nbsp;|&nbsp;&nbsp;
                        [ 发布人：@ViewBag.person]
                    </td>
                </tr>
            </table>

            <div style="text-align:center">
                @if (!string.IsNullOrEmpty(@Model.newsImage))
                {
                    @Html.Raw("   <img id='result'  src='../../upimg/" + @Model.newsImage + "'/>")
                }
                <p></p>

                @Html.Raw(Model.content)

            </div>

            <div style="text-align:center; margin-top:20px">
                <a href="../news/newsview"> 返回</a>
            </div>


        </div>
    </form>
</body>
</html>
